<%@ page import="java.sql.*" %><%--
  Created by IntelliJ IDEA.
  User: ASUS
  Date: 2021/4/11
  Time: 16:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--通过taglib标签引入所需的标签库--%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>读者中心</title>
    <link rel="stylesheet" type="text/css" href="css/person8.css">
    <script src="js/menu.js"></script>
</head>
<body>
<nav>
    <a href="Home.jsp">首页</a>
    <%if(session.getAttribute("iden").equals("admin")){%><a href="showTable2"><%}else{%><a href="showTable"><%}%>图书目录</a>
    <a href="person.jsp">读者中心</a>
    <a href="showComment">评论区</a>
</nav>
<!--用户信息-->
<div class="header">
    <span><h1>欢迎：<%if(session.getAttribute("iden").equals("admin")){out.print("管理员");out.print(" ");}%>${sessionScope.userName}</h1></span>
</div>
<div id="tab">
    <div class="tabList">
        <ul>
            <li class="cur">待还书籍</li>
            <li>个人信息</li>
            <li>我的书架</li>
            <li>设置</li>
        </ul>
    </div>
    <div class="tabCon">
        <div class="cur">
            <table border="0" align="center" cellpadding="4" cellspacing="20px" id="table1">
                <tbody>
                <tr>
                    <th width="300px" align="text-center">书名</th>
                    <th width="300px" align="text-center">作者</th>
                    <th width="300px" align="text-center">出版社</th>
                    <th width="300px" align="text-center">操作</th>
                </tr>

                <c:forEach var="borrowBook" items="${list}">
                    <tr>
                        <td>${borrowBook.bName}</td>
                        <td>${borrowBook.bAut}</td>
                        <td>${borrowBook.bPub}</td>
                        <td><a href='huanshu?id=${borrowBook.id}'>还书</a></td>
                    </tr>
                </c:forEach>

                </tbody>
            </table>
        </div>
        <div>
           个人信息
        </div>
        <div>
            我的收藏
        </div>
        <div style="text-align: center;" >
            <a href="#">账户和安全</a>
            <a href="#">青少年模式</a>
            <a href="#">阅读模式</a>
            <a href="#">隐私</a>
            <a href="#">通用</a>
            <a href="#">关于邂逅书屋</a>
            <a href="#">帮助与反馈</a>
            <a href="Login.jsp">退出账号</a>
        </div>
    </div>
</div>


</body>

</html>
